<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org"
      layout:decorator="layout/pc_master">
<div layout:fragment="content" class="section page-content">
    <link rel="stylesheet" href="/pc/css/home/login.css">
    <input type="hidden" id="type" value="login">
    <div class="layui-main clearfix">
        <div class="login-warp clearfix">
            <div class="section-left">
                <div class="loginway" way="password">
                    <div class="loginway-navs">
                        <div class="group">
                            <a class="item" way="password" onClick="$('.loginway').attr('way','password')">密码登录</a>
                            <a class="item" way="mobile" onClick="$('.loginway').attr('way','mobile')">手机登录</a>
                        </div>
                    </div>

                    <div class="loginway-contet">
                        <div class="loginway-item item-password" way="password">
                            <form action="/m/ajax/user/login" bottlecms-form-ajax="" class="loginform"
                                  method="post" onsubmit="return checkPassword()" id="form_password">
                                <input bottlecms-input type="hidden" name="way" value="password"/>
                                <input bottlecms-input type="hidden" name="source" value="pc"/>
                                <div class="bcui-form" style="padding-top: 10px;">

                                    <div class="form-item">
                                        <input bottlecms-input type="text" name="username" id="username" value=""
                                               placeholder="用户名/手机号/邮箱"/>
                                        <i class="ricon icon-bottlecms-45"></i>
                                    </div>
                                    <div class="form-item">
                                        <input bottlecms-input type="password" name="password" id="password" value=""
                                               placeholder="登录密码"/>
                                        <i class="ricon icon-bottlecms-46"></i>
                                    </div>
                                    <div class="form-item">
                                        <button class="btn  form-submit" type="submit">
                                            登录
                                        </button>
                                    </div>
                                    <div class="form-item" style="">
                                        <div class="ub-f1" style="">
                                            <a href="/repassword" style="color: #999;font-size: 16px;">忘记密码?</a>
                                        </div>
                                        <div class="ub-f1" style="text-align: right;"><a
                                                href="/register"
                                                style="color: #999;font-size:16px;">注册账号>></a></div>


                                    </div>


                                </div>
                            </form>
                        </div>

                        <div class="loginway-item item-mobile" way="mobile">
                            <form action="/m/ajax/user/login" bottlecms-form-ajax="" class="loginform2"
                                  method="post" onsubmit="return checkMobile()" id="form_mobile">
                                <input bottlecms-input type="hidden" name="way" value="mobile"/>
                                <input bottlecms-input type="hidden" name="source" value="pc"/>
                                <div class="bcui-form" style="padding-top: 10px;">

                                    <div class="form-item">
                                        <input bottlecms-input type="text" name="mobile" id="mobile" value="" placeholder="手机号"/>
                                        <i class="ricon icon-bottlecms-45"></i>
                                    </div>
                                    <div class="form-item ">
                                        <input bottlecms-input type="text" name="smsyzm" id="smsyzm" value="" placeholder="验证码"
                                               maxlength="6" oninput="if(value.length>6)value=value.slice(0,6)"/>

                                        <button class="btn btn-warning btn-sm sendSms" type="button"
                                                style="position: absolute;top:50%; right: 5px; margin-top: -15px;">
                                            发送验证码
                                        </button>

                                    </div>
                                    <div class="form-item">
                                        <button class="btn  form-submit" type="submit">
                                            登录
                                        </button>
                                    </div>
                                    <div class="form-item">

                                        <div class="ub-f1" style="text-align: right;"><a
                                                href="https://demo.bottlecms.com/register"
                                                style="color: #999;font-size: 15px;">没有账号？立即注册>></a></div>
                                    </div>
                                </div>
                            </form>
                        </div>

                    </div>
                </div>


                <div style="height: 60px;"></div>

            </div>

            <div class="section-right">
                还有账号？<a href="/register" class="_color">立即注册>></a>
            </div>
        </div>
    </div>


</div>
<script layout:fragment="contentFooter" src="/pc/js/home/login.js" type="text/javascript"></script>
</html>